run: all
	./main

all: create-obj main.o
	# this also init c runtime as well
	gcc -o main main.o


create-obj:
	rustc main.rs -g -C panic="abort" --emit=obj -C opt-level=z -A unused -A dead_code
	# ld -o main main.o -lc -dynamic-linker /lib64/ld-linux-x86-64.so.2


